//react event 感觉是被放弃了，各种import都不成功,
/*使用第三方库eventemitter3,很轻量级
on(name,fucntion(data))注册
off(name,fucntion)取消
emit(name,data[可以是json，很方便]) */

//import {EventEmitter} from 'events';
//import {EventEmitter} from 'react-native';
//const EventEmitter = require('../node_modules/react-native/Libraries/vendor/emitter/EventEmitter');
const EventEmitter = require('eventemitter3');
console.log('EventEmitter', EventEmitter);
const eventBus = new EventEmitter();
console.log('----------------->', eventBus);

export default eventBus;
